FROM postgres:9.6.9
ADD sql/*.sql /docker-entrypoint-initdb.d/
ADD docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh
ENV TZ Aisa/Shanghai
ENV LANG en_US.utf8
ENV PGDATA /var/lib/postgresql/data
ENV PG_MAJOR 9
ENV PG_VERSION 9.6
ENV POSTGRESQL_PASS Gcstorage@123
ENV POSTGRESQL_USER postgres
VOLUME /var/lib/postgresql/data
EXPOSE 5432